<script setup>
import {ref,onMounted} from 'vue';
import Xgplayer from 'xgplayer'

const player=ref({})

onMounted(()=>{
    player.value=new Xgplayer({
        id: 'dvplay',
        url: 'http://www.w3school.com.cn/i/movie.mp4',
        playsinline: true,
        fluid: true
    })
})

</script>
<template>
    <div id="dvplay"></div>

</template>